package reduce.fz.com.reduce.service;

import android.content.Context;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.abstracts.AbResponseListener;
import reduce.fz.com.reduce.util.ApiUtil;
import reduce.fz.com.reduce.util.HttpUtils;
import reduce.fz.com.reduce.util.base.ReduceApplication;

/**
 * Created by qingshengzheng on 16/1/27.
 */
public class NoticeService {

    private Context context;

    public NoticeService(Context context) {
        this.context = ReduceApplication.getInstance().getBaseContext();
    }

    public void getNotifyCention(AbResponseListener listener) {
        String url = ApiUtil.getApi(context, R.array.api_get_notify_cention);
        HttpUtils.get(url, listener);
    }

    public void clearNoReadMessage(String type,AbResponseListener listener)
    {
        String url = ApiUtil.getApi(context, R.array.api_noticetype_read,type);
        HttpUtils.get(url, listener);
    }


}
